#include <stdio.h>

typedef struct _Node{
	int data;
	struct _Node *next;
}Node;

typedef struct HashTable{
	Node *value[10];
}HashTable;

HashTable* creataHashTable(){
	HashTable *pHashTable = (HashTable*)malloc(sizeof(HashTable));
	memset(pHashTable,0,sizeof(HashTable));
	return pHashTable;
}

int HashInsert(HashTable* pHashTable,int data){
	Node *pNode;
	if(NULL == pHashTable)
		return -1;
	
	if(NULL == pHashTable->value[data % 10]){
		pNode = (Node*)malloc(sizeof(Node));
		memset(pNode,0,sizeof(Node));
		pNode->data = data;
		pNode->value[data % 10] = pNode;
		return 1;
	}
	
	pNode = pHashTable->value[data%10];
	while(NULL != pNode->next)
		pNode = pNode->next;
	
	pNode->next = (Node*) malloc(sizeof(Node));
	memset(pNode->next,0,sizeof(Node);
	pNode->next-> data =data;
	return 1;
}

int main(){
}